Skip to content

Bootstrap new preset Renovate config - #427

Merged
cert-manager-prow[bot] merged 1 commit into
cert-manager:mainfrom
erikgb:renovate-config-bootstrap
Sep 11, 2025
Merged

Bootstrap new preset Renovate config#427
cert-manager-prow[bot] merged 1 commit into
cert-manager:mainfrom
erikgb:renovate-config-bootstrap

Conversation

@erikgb

@erikgb erikgb commented Sep 9, 2025

Copy link
Copy Markdown
Member

This PR prepares for the migration of repositories to use a dedicated repository as a Renovate shared config preset. A manual self-upgrade will be required to migrate a repository from the current Renovate config in repository-base module to the shared config preset repository for our org: https://github.com/cert-manager/renovate-config.

To implement this, I am proposing a solution where the Renovate config file is created if it does not already exist. It should never overwrite a config managed in the repo after bootstrap.

Tested here: cert-manager/webhook-cert-lib#78, which will also be the next repo to migrate to the new shared config. There are probably things missing from the new shared preset, so I think we should migrate slowly.

@cert-manager-prow cert-manager-prow Bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 9, 2025
@erikgb
erikgb force-pushed the renovate-config-bootstrap branch 9 times, most recently from 3afd2ac to 2ddaa86 Compare September 9, 2025 17:56

This comment was marked as outdated.

@erikgb
erikgb force-pushed the renovate-config-bootstrap branch from 2ddaa86 to 69ac93a Compare September 9, 2025 18:02
@erikgb
erikgb requested a review from Copilot September 9, 2025 18:02

This comment was marked as outdated.

@erikgb
erikgb force-pushed the renovate-config-bootstrap branch from 69ac93a to 6c9b1bb Compare September 9, 2025 18:05
@erikgb
erikgb requested a review from Copilot September 9, 2025 18:05

This comment was marked as outdated.

@erikgb
erikgb requested a review from Copilot September 9, 2025 18:07

This comment was marked as outdated.

@erikgb
erikgb force-pushed the renovate-config-bootstrap branch from 6c9b1bb to 0ef1c13 Compare September 9, 2025 18:11
@erikgb
erikgb requested a review from Copilot September 9, 2025 18:12

This comment was marked as outdated.

@erikgb
erikgb force-pushed the renovate-config-bootstrap branch from 0ef1c13 to e962792 Compare September 9, 2025 18:15
@erikgb
erikgb requested a review from Copilot September 9, 2025 18:15

This comment was marked as outdated.

@erikgb
erikgb force-pushed the renovate-config-bootstrap branch from e962792 to 2c33326 Compare September 9, 2025 18:16
@erikgb
erikgb requested a review from Copilot September 9, 2025 18:17

This comment was marked as outdated.

@erikgb
erikgb force-pushed the renovate-config-bootstrap branch from 2c33326 to dfba5fc Compare September 9, 2025 18:19
@erikgb
erikgb requested a review from Copilot September 9, 2025 18:20

This comment was marked as outdated.

@erikgb
erikgb force-pushed the renovate-config-bootstrap branch from f859dc9 to 319ac95 Compare September 9, 2025 18:25
Signed-off-by: Erik Godding Boye <egboye@gmail.com>
@erikgb
erikgb force-pushed the renovate-config-bootstrap branch from 319ac95 to ba95b4a Compare September 9, 2025 18:26
@erikgb
erikgb requested a review from Copilot September 9, 2025 18:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a bootstrap mechanism for Renovate configuration as part of migrating repositories to use a dedicated shared config preset. The change allows repositories to automatically receive a minimal Renovate config that extends from a centralized preset without overwriting existing configurations.

  • Adds a bootstrap Renovate config file that extends from the shared preset
  • Modifies the generate-base target to conditionally create the Renovate config
  • Introduces module directory variable for better path management

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
renovate-bootstrap-config.json5 New bootstrap config extending shared preset
01_mod.mk Enhanced generate-base target with conditional Renovate config creation
base/.github/renovate.json5 Empty file addition for template structure

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +31 to +34
if [ ! -e ./.github/renovate.json5 ]; then \
mkdir -p ./.github; \
cp $(_repository_base_module_dir)/renovate-bootstrap-config.json5 ./.github/renovate.json5; \
fi

Copilot AI Sep 9, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shell command spans multiple lines without proper line continuation. Each line should end with a backslash (\) for proper make syntax, or the entire command should be on a single line with && separators.

Copilot uses AI. Check for mistakes.
@ThatsMrTalbot

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@cert-manager-prow cert-manager-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Sep 11, 2025
@cert-manager-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ThatsMrTalbot

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow cert-manager-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 11, 2025
@cert-manager-prow
cert-manager-prow Bot merged commit bbb9940 into cert-manager:main Sep 11, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants